package com.mrx.xfriendship.dao;

import com.mrx.xfriendship.model.po.UserDetailPO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author Mr.X
 * @since 2023-01-14 10:50:30
 */
@Mapper
public interface UserDetailMapper {

    int deleteByPrimaryKey(Integer id);

    int insert(UserDetailPO record);

    int insertSelective(UserDetailPO record);

    UserDetailPO selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(UserDetailPO record);

    int updateByPrimaryKey(UserDetailPO record);

    UserDetailPO selectByUserId(Integer userId);

    int updateAvatarByUserId(Integer userId, String bucketFileName);

    void deleteByUserId(Integer id);

    List<UserDetailPO> selectList();

    Integer selectRank(Integer userId);

}
